package mapper.user;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface StorageRecord {
    //根据商品名称(模糊查询)、供货商ID、支付状态查询入库记录
    public List<pojo.StorageRecord> getUserByGoodsName(@Param("goodsName") String goodsName, @Param("supplierId") long supplierId, @Param("payStatus") Integer payStatus);
    public List<pojo.StorageRecord> getUserByGoodsNames(pojo.StorageRecord storageRecord);

    //数组为参数查询入库记录
    public List<pojo.StorageRecord> getUserBySupplierIdsArray(Long[] supplierIds);

    //集合为参数查询入库记录
    public List<pojo.StorageRecord> getUserBySupplierIdsList(List<Long> supplierIds);

    //参数为Map对象
    public List<pojo.StorageRecord> getUserBySupplierIdsMap(Map<String,Object> storageRecordMap);


   //已商品名称(模糊查询),供货商ID,是否付款查询
    public List<pojo.StorageRecord> selectPageList(@Param("goodsName")String goodsName, @Param("supplierId")long supplierId,
                                                   @Param("pageBegin")Integer pageBegin,@Param("pageSize")Integer pageSize);

    //添加
    public int insertStorageRecord(pojo.StorageRecord storageRecord);

    //修改
    public int updateStorageRecord(pojo.StorageRecord storageRecord);

    //删除
    public int deleteStorageRecord(Long id);

}

